package com.spring.AutoWiring;

/**
 * Created by wangyg on 2017/1/4.
 */
public class AutoWiringService {
	private AutoWiringDAO autoWiringDAO;

	public AutoWiringService(AutoWiringDAO autoWiringDAO) {
		this.autoWiringDAO = autoWiringDAO;
	}

	public void setAutoWiringDAO(AutoWiringDAO autoWiringDAO) {
//		System.out.println("调用了");
		this.autoWiringDAO = autoWiringDAO;
	}

	public void say(String word){
		autoWiringDAO.say(word);
	}
}
